﻿using System;
using System.Data;
using System.Data.SqlClient;

namespace DataAccess
{
    public class DaTimeWeek
    {
        public DataTable selRegisterWeek(string date, string email, string companyid)
        {
            string strCommandText = "selRegisterWeek2Tmp" + companyid;
            SqlParameter[] paraLocal = new SqlParameter[2];
            paraLocal[0] = new SqlParameter("@Date", DateTime.Parse(date));
            paraLocal[1] = new SqlParameter("@Email", email);
            return SqlHelper.ExecuteData(CommandType.StoredProcedure, strCommandText, paraLocal);
        }

        public DataTable selRegisterWeekUti(int sid,string companyid)
        {
            string strCommandText = "selRegisterWeekUti"+companyid;
            SqlParameter[] paraLocal = new SqlParameter[1];
            paraLocal[0] = new SqlParameter("@SAID", sid);
            return SqlHelper.ExecuteData(CommandType.StoredProcedure, strCommandText, paraLocal);
        }
    }
}
